package lib.core.commands
{
	import lib.core.com.BaseApplication;
	import lib.view.ModuleLoaderMediator;
	import lib.view.ApplicationMediator;
	
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class ViewPrepCommand extends SimpleCommand
	{
		override public function execute(notification:INotification):void
		{
			var app:BaseApplication = notification.getBody() as BaseApplication;
			facade.registerMediator(new ApplicationMediator(app));
			facade.registerMediator(new ModuleLoaderMediator(app));
		}	
	}
}